package org.hades.corelib.base.view.dialog

import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.fragment.app.DialogFragment
import org.hades.corelib.R

class LoadingDialog:DialogFragment(R.layout.core_loading_dialog) {
    override fun onCreateView(
        inflater: LayoutInflater,
        container: ViewGroup?,
        savedInstanceState: Bundle?
    ): View? {
        dialog?.apply {
            this.setCanceledOnTouchOutside(false)
        }
        return super.onCreateView(inflater, container, savedInstanceState)
    }
}